﻿//int f(unsigned int n) {
//    if (n == 0 || n == 1)
//        return 1;
//    else
//        return n * f(n - 1);
//}

//#include <stdio.h>
//#include <string.h>
//int main()
//{
//    char str[][20] = { "Hello","Beijing" }, * p = str[0];
//    printf("%d\n", strlen(p + 20));
//    return 0;
//}

//#include<stdio.h>
//struct s
//{
//    int x;
//    int y;
//} data[2] = { 10, 100, 20, 200 };
//int main()
//{
//    struct s* p = data + 1;
//    printf("%d\n", p->x);
//    return 0;
//}

//#include <stdio.h>
//#include <stdlib.h>
//
//struct NODE {
//    int num;
//    struct NODE* next;
//};
//
//int main(void)
//{
//    struct NODE* p, * q, * r;
//
//    p = (struct NODE*)malloc(sizeof(struct NODE));
//    q = (struct NODE*)malloc(sizeof(struct NODE));
//    r = (struct NODE*)malloc(sizeof(struct NODE));
//    p->num = 10;
//    q->num = 20;
//    r->num = 30;
//    p->next = q;
//    q->next = r;
//    printf("%d\n", p->num + q->next->num);
//
//    return 0;
//}

//FILE* fp;
//double x = 3.1415;
//int y = 12;
//fp = fopen("test.txt", "w");
//fprintf(fp, "%f", x);
//rewind(fp);
//fprintf(fp, "%d", y);
//fclose(fp);
//fp = fopen("test.txt", "r");
//fscanf(fp, "%d", &y);
//printf("%f,%d", x, y);
//fclose(fp);